package com.harisucici.websocketlib.entities.receive;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity
public class SessionListReceive implements Serializable {


    /**
     * msgType : TEXT
     * imgAvator :
     * textAvator : 于娇娇
     * userNo : 202001057287476
     * lastMessage : cc测好受点22阿萨德是e
     * timelineId : 1296095258916032512
     * lastMessageSeqId : 1597900860341000
     * type : SINGLE
     * userId : 202001051239147
     * remove : false
     * unReadNum : 0
     * top : false
     * createTime : 13:21
     * name : 于娇娇
     * timestamp : 1597900860308
     */
    private String msgType;
    private String imgAvator;
    private String textAvator;
    private String userNo;
    private String lastMessage;
    @PrimaryKey
    @NonNull
    private String timelineId;
    private long lastMessageSeqId;
    private String type;
    private String userId;
    private boolean remove;
    private int unReadNum;
    private boolean top;
    private String createTime;
    private String name;
    private long timestamp;
    private int sendState;//0 已发送 1 发送中 2 未发送

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getImgAvator() {
        return imgAvator;
    }

    public void setImgAvator(String imgAvator) {
        this.imgAvator = imgAvator;
    }

    public String getTextAvator() {
        return textAvator;
    }

    public void setTextAvator(String textAvator) {
        this.textAvator = textAvator;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getLastMessage() {
        return lastMessage;
    }

    public void setLastMessage(String lastMessage) {
        this.lastMessage = lastMessage;
    }

    public String getTimelineId() {
        return timelineId;
    }

    public void setTimelineId(String timelineId) {
        this.timelineId = timelineId;
    }

    public long getLastMessageSeqId() {
        return lastMessageSeqId;
    }

    public void setLastMessageSeqId(long lastMessageSeqId) {
        this.lastMessageSeqId = lastMessageSeqId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isRemove() {
        return remove;
    }

    public void setRemove(boolean remove) {
        this.remove = remove;
    }

    public int getUnReadNum() {
        return unReadNum;
    }

    public void setUnReadNum(int unReadNum) {
        this.unReadNum = unReadNum;
    }

    public boolean isTop() {
        return top;
    }

    public void setTop(boolean top) {
        this.top = top;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getSendState() {
        return sendState;
    }

    public void setSendState(int sendState) {
        this.sendState = sendState;
    }
}
